package org.domain.sigepac.home;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author marcelo.guimaraes
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface QuerySupport {

  String beginOutcome() default "begin";

  String endOutcome() default "end";

  /**
   * Query
   * <p>
   * O padr�o � from {@link Class#getSimpleName() entidade}"
   */
  String ejbql() default "";

  /**
   * Atributo de ordenacao.
   */
  String order() default "";

  String groupBy() default "";

  /**
   * Numero maximo de resultados.
   */
  int maxResults() default 10000;
}
